using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Resources;
using System.Reflection;
using System.Threading;
using Microsoft.BizTalk.Component.Interop;
using Microsoft.BizTalk.TransportProxy.Interop;

namespace Microsoft.Samples.BizTalk.Adapter.Tcp.Send
{
    /// <summary>
    ///     This class implements a send adapter in BizTalk.
    /// </summary>
    /// <author>
    ///     Paul Brown
    /// </author>
    public partial class SendAdapter : IBaseComponent,
                                       IBTTransport,
                                       IPersistPropertyBag,
                                       IBTTransportControl,
                                       IBTBatchTransmitter,
                                       IAdapter
    {
        #region IPersistPropertyBag Members

        /// <summary>
        ///     This method returns the class ID for the send adapter.
        /// </summary>
        public void GetClassID(out Guid classID)
        {
            classID = this._clsid;
        }

        /// <summary>
        ///     This method does not require implementation.
        /// </summary>
        public void InitNew()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        ///     This method loads the send handler configuration.  It is loaded only once so any send
        ///     handler changes require a restart of the BTS service.
        /// </summary>
        public void Load(IPropertyBag propertyBag, int errorLog)
        {
            // Extract properties from XML
            this.LoadSendHandlerConfiguration(propertyBag);
        }

        /// <summary>
        ///     This method does not require implementation.
        /// </summary>
        public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
